package com.kscrm.web.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kscrm.web.mapper.ActivityClientMapper;
import com.kscrm.web.domain.ActivityClient;
import com.kscrm.web.service.IActivityClientService;

/**
 * 活动客户Service业务层处理
 * 
 * @author Dhq
 * @date 2025-05-12
 */
@Service
public class ActivityClientServiceImpl implements IActivityClientService 
{
    @Autowired
    private ActivityClientMapper activityClientMapper;

    /**
     * 查询活动客户
     * 
     * @param clientId 活动客户主键
     * @return 活动客户
     */
    @Override
    public ActivityClient selectActivityClientByClientId(Long clientId)
    {
        return activityClientMapper.selectActivityClientByClientId(clientId);
    }

    /**
     * 查询活动客户列表
     * 
     * @param activityClient 活动客户
     * @return 活动客户
     */
    @Override
    public List<ActivityClient> selectActivityClientList(ActivityClient activityClient)
    {
        return activityClientMapper.selectActivityClientList(activityClient);
    }

    /**
     * 新增活动客户
     * 
     * @param activityClient 活动客户
     * @return 结果
     */
    @Override
    public int insertActivityClient(ActivityClient activityClient)
    {
        return activityClientMapper.insertActivityClient(activityClient);
    }

    /**
     * 修改活动客户
     * 
     * @param activityClient 活动客户
     * @return 结果
     */
    @Override
    public int updateActivityClient(ActivityClient activityClient)
    {
        return activityClientMapper.updateActivityClient(activityClient);
    }

    /**
     * 批量删除活动客户
     * 
     * @param clientIds 需要删除的活动客户主键
     * @return 结果
     */
    @Override
    public int deleteActivityClientByClientIds(Long[] clientIds)
    {
        return activityClientMapper.deleteActivityClientByClientIds(clientIds);
    }

    /**
     * 删除活动客户信息
     * 
     * @return 结果
     */
    @Override
    public int deleteActivityClientByActivityId(Long activityId)
    {
        return activityClientMapper.deleteActivityClientByActivityId(activityId);
    }
}
